#define  _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
void input(double arr[])
{
	for (int i = 0; i < 10; i++)
	{
		scanf("%lf", &arr[i]);
	}
}
void output(double arr[])
{
	for (int i = 0; i < 10; i++)
	{
		printf("%.2lf ", arr[i]);
		if (i == 9)
		{
			putchar('\n');
		}
	}
}
void rank(double arr[])
{
	double min = arr[0];
	double max = arr[0];
	for (int i = 0; i < 10; i++)
	{
		if (min > arr[i])
		{
			min = arr[i];
		}
		if (max < arr[i])
		{
			max = arr[i];
		}
	}
	printf("max= %.2lf min= %.2lf\n", max, min);

}
int main()
{
	double mainArr[10] = { 0 };
	input(mainArr);
	output(mainArr);
	rank(mainArr);
	return 0;
}